{extend name="default/template/base_index" /}

{block name="area_header"}
<script type="text/javascript" src="__CDN__/jquery-datetimepicker/jquery.datetimepicker.js"></script>
<link rel="stylesheet" type="text/css" media="all" href="__CDN__/jquery-datetimepicker/jquery.datetimepicker.css">
{/block}

{block name="area_body"}
	{include file="default/Widget/topbar" /}
	<div class="admin-main container-fluid">
		{include file="default/Widget/left" /}
		<div class="admin-main-content">
			{include file="default/Widget/breadcrumb" /}
			<div class="table-responsive well">
	<!-- 过滤\查询按钮 -->
	<div class="filter-controls">
		<form action="{:url('Suggest/index')}" class="memberForm form-inline" method="post">
			<div class="form-group">
				<label class="control-label">用户id</label>
				<div class="input-group">
					<input class="form-control" value="" type="text" name="uid" placeholder="用户id" value="{$uid}"/>
				</div>
			</div>
			<div class="form-group hidden">
				<div class="input-group">
					<div class="input-group-addon input-sm">
						时间
						<i class="fa fa-calendar"></i>
					</div>
					<input type="text" name="startdatetime" id="startdatetime" class="form-control input-short input-sm" value="{$startdatetime}" />
					<div class="input-group-addon input-sm">
						<i class="fa fa-long-arrow-right"></i>
					</div>
					<input type="text" name="enddatetime" id="enddatetime" class="form-control input-short input-sm" value="{$enddatetime}" />
				</div>
				<button type="submit" class="btn btn-default btn-sm"><i class="fa fa-search"></i>{:L('BTN_SEARCH')}</button>
			</div>
			<!--<div class="form-group">-->
				<!--<label class="control-label">&nbsp;</label>-->
				<!--<div class="input-group">-->
					<!--<button type="submit" class="btn btn-primary btn-sm"><i class="fa fa-search"></i>查询</button>-->
				<!--</div>-->
			<!--</div>-->
		</form>
	</div>


	<table class="table table-striped table table-hover  table-condensed">
		<thead>
			<tr>
				<th style="width:40px;">							
					<input type="checkbox" class="selectall" onclick="myUtils.selectall(this,'.selectitem');" /> 
				</th>
				<th>
					用户id
				</th>
				<th>
					反馈时间
				</th>
				<th>
					反馈内容
				</th>
				<th>
					电话
				</th>

			</tr>
		</thead>
		<tbody>
			{empty name="list"}
				<tr>
					<td colspan="8" class="text-center">{:L('NO_DATA')}</td>
				</tr>
				{else/}
				{volist name="list" id="vo"}
					<tr>
						<td><input type="checkbox" value="{$vo.id}" name="id[]" class="selectitem" /></td>

						<td><a target="_blank" href="{:url('Admin/Member/view?id='.$vo['uid'])}">{$vo.uid}</a></td>
						<td>{:toDatetime($vo.create_time)}</td>
						<td>{$vo.text}</td>
						<td>{$vo.tel}</td>
						<!--<td>{$vo.email}</td>-->
						<!--<td>-->
							<!--<a href="{:url('Admin/Email/send')}?to_email={$vo.email}&return_url={:url('admin/suggest/index',$params)}" class="btn btn-danger btn-sm" >-->
								<!--发送邮件</a>-->
						<!--</td>-->

				{/volist}
			{/empty}
		</tbody>
	</table>
	<div>{$show}</div>
</div>
		</div>
		<!-- END admin-main-content -->
	</div>
		<!-- END admin-main-->
<script type="text/javascript">
	$(function() {

		$('#startdatetime').datetimepicker({
			lang: 'ch',
			format:'Y-m-d H:i:s',
			// format:'Y-m-d',
			// timepicker:false,
		});
		$('#enddatetime').datetimepicker({
			lang: 'ch',
			format:'Y-m-d H:i:s',
		});
	});
</script>
{/block}

{block name="area_footer"}

{/block}
